<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?
class ShowTable{
   public function Table_1($tr,$td){
      $table="<table width='100%' border='1'>" ;
		 for($j=1;$j<=$td;$j++){
            $table_td .="<td>&nbsp;</td>";
		}
		 for($i=1;$i<=$tr;$i++){   
	       $table_tr .="<tr>".$table_td."</tr>";
        }		
     $table.=$table_tr."</table>";
  return $table;
}
   public function Table_2($num){
	$table="<table width='100%' border='1'>" ;
	for($j=1;$j<=$num;$j++){  
	$table_td="";
	    for($i=1;$i<=$num;$i++){
	        $total=$j*$i;
			if($total==1)
	            $table_td.="<td>&nbsp;</td>";
	        else
	  	        $table_td.="<td>".$total."</td>";
		    }
		  $table_tr .="<tr>".$table_td."</tr>";	  
		}  
 $table.=$table_tr ."</table>";
 return $table;
   }
}
?>

